#!/bin/bash
docker run -d -p 80:80  \
              -p 443:443  \
 --name nginxweb \
 --restart=always \
 --link answer-server:answerserver \
 -v /usr/local/docker/nginx/conf/nginx.conf:/etc/nginx/nginx.conf \
 -v /usr/local/docker/nginx/conf/conf.d/:/etc/nginx/conf.d/ \
 -v /usr/local/docker/nginx/html:/usr/share/nginx/html \
 -v /usr/local/docker/nginx/logs:/var/log/nginx \
 nginx

docker run \
-p 80:80 \
--name nginx \
--restart=always \
-v /opt/docker/nginx/conf/nginx.conf:/etc/nginx/nginx.conf \
-v /opt/docker/nginx/conf/conf.d/:/etc/nginx/conf.d/ \
-v /opt/docker/nginx/html:/usr/share/nginx/html \
-v /opt/docker/nginx/logs:/var/log/nginx \
-d \
nginx